import java.util.Scanner;

public class AdditionCalculator {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.print("请输入第一个整数：");
        int num1 = scanner.nextInt();

        System.out.print("请输入第二个整数：");
        int num2 = scanner.nextInt();

        int result = add(num1, num2);
        System.out.println("两数相加的结果为：" + result);
    }

    // 加法运算方法
    public static int add(int a, int b) {
        return a + b;
    }
}